COM AT^SAOF test - Auto Off
COM V1.0	27.01.2005	T. Kleinmann 	Started
COM V1.1	22.02.2005	T. Kleinmann	added test for invalid time parameter

##########################################################################################
#ToDo: Check supported modes in test and read command
#ToDo: 
#ToDo: 
##########################################################################################

from attglobals import *

##########################################################################################

COM Test command
AT^SAOF=?
WAITFOR(1,'SAOF: ')

##########################################################################################

COM Read command
AT^SAOF?
WAITFOR (1,'^SAOF : ')

##########################################################################################
COM Write command - Auto OFF is switched Off - without time parameter
AT^SAOF=0
WAIT FOR OK

AT^SAOF?
WAITFOR (1,'^SAOF: 0')

##########################################################################################

COM Write command - Auto OFF is switched ON  - without time parameter
AT^SAOF=1
WAIT FOR OK

AT^SAOF?
WAITFOR (1,'^SAOF: 1')

##########################################################################################

COM Write command - Auto OFF is switched Off and time is set
AT^SAOF=0,'11:00'
WAIT FOR OK

AT^SAOF?
WAITFOR (1,'^SAOF:')

##########################################################################################

COM Write command - Auto OFF is switched ON and time is set
AT^SAOF=1,'11:00'
WAIT FOR OK

AT^SAOF?
WAITFOR (1,'^SAOF:')

##########################################################################################

COM Erroneous Write command - Auto OFF is switched ON and time is set
AT^SAOF=1,'33:00'
WAIT FOR OK

AT^SAOF?
WAITFOR (1,'^SAOF:')

##########################################################################################
